#define _CRT_SECURE_NO_WARNINGS
#include<math.h>
#include<stdio.h>
void init(int* pl, int l)
{
    int a = 0;
    for (; a <= l; a += 1, pl += 1)
    {
        *pl = 0;
    }
}
int main()
{
    int arr[] = { 1,2,3,4,5,6 };
    int l = sizeof(arr) / sizeof arr[0] - 1;
    init(arr, l);
    return 0;
}